// pages/shop/main/juan/juan.js
import tips from '../../../../class/Utils/Tips'

Page({

  data: {
    menuid:1,
    juanlist: [
      { id: '1', zhekou: '8', xianling: '1', shiyong: '指定商品可用，无使用门槛', zhuangtai: '0', shichang: 'https://toocle.y.netsun.com/Uploads/head/5bdbe3d11a6d7.png', used: 1, },
      { id: '2', zhekou: '2', xianling: '1', shiyong: '指定商品可用，无使用门槛', zhuangtai: '1', shichang: 'https://toocle.y.netsun.com/Uploads/head/5bdbe3d11a6d7.png', used: 2, },
      { id: '2', zhekou: '2', xianling: '1', shiyong: '指定商品可用，无使用门槛', zhuangtai: '1', shichang: 'https://toocle.y.netsun.com/Uploads/head/5bdbe3d11a6d7.png', used: 0, },
    ],
  },
  onLoad:function(){

  },
  //去使用优惠券
  gotoused: function () {
    var that = this
    tips.godaohang('/pages/shop/index/index')
  },
  //改变导航
  changemenu:function(e){
    var that = this
    var thisid = e.currentTarget.dataset.id
    that.setData({
      menuid: thisid
    })
  },

})